import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/login',
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue'),
    },
    {
      path: '/home',
      name: 'home',
      component: import('../views/HomeView.vue'),
      redirect: '/home/index',
      children: [
        {
          path: 'index',
          name: 'index',
          component: import('../views/index.vue'),
        },
        {
          path: 'register',
          name: 'register',
          component: import('../views/AppointmentManagement/register.vue'),
        },
        {
          path: 'nucleic',
          name: 'nucleic',
          component: import('../views/AppointmentManagement/nucleicAcidTest.vue'),
        },
        {
          path: 'yytj',
          name: 'yytj',
          component: import('../views/AppointmentManagement/physicalExamination.vue'),
        },
        {
          path: 'arrange',
          name: 'arrange',
          component: import('../views/AppointmentManagement/arrange.vue'),
        },
        {
          path: 'mzxfjl',
          name: 'mzxfjl',
          component: import('../views/ExpenseManagement/outpatientConsumptionRecord.vue'),
        },
        {
          path: 'mzczjl',
          name: 'mzczjl',
          component: import('../views/ExpenseManagement/outpatientPayRecord.vue'),
        },
        {
          path: 'zyczjl',
          name: 'zyczjl',
          component: import('../views/ExpenseManagement/hospitalizationPayRecord.vue'),
        },
        {
          path: 'zyxfjl',
          name: 'zyxfjl',
          component: import('../views/ExpenseManagement/hospitalizationConsumptionRecord.vue'),
        },
        {
          path: 'tkjl',
          name: 'tkjl',
          component: import('../views/ExpenseManagement/creditRecord.vue'),
        },
        {
          path: 'doctor',
          name: 'doctor',
          component: import('../views/HospitalManagement/doctorManagement.vue'),
        },
        //医生管理新增/编辑页面
        {
          path: 'doctorManagmentModal',
          name: 'doctorManagmentModal',
          component: import('../views/HospitalManagement/doctorManagmentModal/doctorManagmentModal.vue'),
        },
        {
          path: 'department',
          name: 'department',
          component: import('../views/HospitalManagement/departmentManagement.vue'),
        },
        {
          path:'departmentManagmentModal',
          name:'departmentManagmentModal',
          component: import('../views/HospitalManagement/departmentManagmentModal/departmentManagmentModal.vue'),
        },

        {
          path: 'physical',
          name: 'physical',
          component: import('../views/HospitalManagement/physicalExamination.vue'),
        },
        {
          path: 'health',
          name: 'health',
          component: import('../views/HospitalManagement/healthFitness.vue'),
        },
        // 健康百科新增/编辑页面
        {
          path:"hospitalNavigationModal",
          name:"hospitalNavigationModal",
          component:import('../views/HospitalManagement/hospitalNavigationModal/hospitalNavigationModal.vue'),
        },
        {
          path: 'guidelines',
          name: 'guidelines',
          component: import('../views/HospitalManagement/treatmentGuidelines.vue'),
        },
        // 就诊指南新增/编辑页面
        {
          path:"guidelinesModal",
          name:"guidelinesModal",
          component:import('../views/HospitalManagement/treatmentGuidelinesModal/treatmentGuidelinesModal.vue'),
        },
        {
          path: 'navigation',
          name: 'navigation',
          component: import('../views/HospitalManagement/hospitalNavigation.vue'),
        },
        {
          path: 'jianJie',
          name: 'jianJie',
          component: import('../views/HospitalManagement/hospitalIntroduction.vue'),
        },
        {
          path: 'scheduling',
          name: 'scheduling',
          component: import('../views/HospitalManagement/scheduling.vue'),
        },
        {
          path: 'administrator',
          name: 'administrator',
          component: import('../views/SystemSettings/administrator.vue'),
        },
        {
          path: 'addAdmin',
          name: 'addAdmin',
          component: import('../views/SystemSettings/addAdmin.vue'),
        },
        {
          path: 'role',
          name: 'role',
          component: import('../views/SystemSettings/role.vue'),
        },
        {
          path: 'addRole',
          name: 'addRole',
          component: import('../views/SystemSettings/addRole.vue'),
        },
        {
          path: 'jobTitle',
          name: 'jobTitle',
          component: import('../views/SystemSettings/jobTitle.vue'),
        },
        {
          path: 'addJob',
          name: 'addJob',
          component: import('../views/SystemSettings/addJob.vue'),
        },
        {
          path: 'newsBulletin',
          name: 'newsBulletin',
          component: import('../views/SystemSettings/newsBulletin.vue'),
        },
        {
          path: 'addNews',
          name: 'addNews',
          component: import('../views/SystemSettings/addNews.vue'),
        },
        {
          path: 'password',
          name: 'password',
          component: import('../views/SystemSettings/changePassword.vue'),
        },
        {
          path: 'ncRegisterGetInfo',
          name: 'ncRegisterGetInfo',
          component: import('../views/AppointmentManagement/ncRegisterGetInfo.vue'),
        },
         {
          path: 'ncBookingDetails',
          name: 'ncBookingDetails',
          component: import('../views/AppointmentManagement/ncBookingDetails.vue'),
         },
        // 費用管理详情开始
        {
          path: '/outpatientConsumptionRecorddetail',
          name: 'outpatientConsumptionRecorddetail',
          component: import('../views/ExpenseManagement/detail/outpatientConsumptionRecorddetail.vue')
        },
        {
          path: '/outpatientPayRecorddetail',
          name: 'outpatientPayRecorddetail',
          component: import('../views/ExpenseManagement/detail/outpatientPayRecorddetail.vue')
        },
        {
          path: '/hospitalizationPayRecorddetail',
          name: 'hospitalizationPayRecorddetail',
          component: import('../views/ExpenseManagement/detail/hospitalizationPayRecorddetail.vue')
        },
        {
          path: '/hospitalizationConsumptionRecorddetail',
          name: 'hospitalizationConsumptionRecorddetail',
          component: import('../views/ExpenseManagement/detail/hospitalizationConsumptionRecorddetail.vue')
        },
        {
          path: '/creditRecorddetail',
          name: 'creditRecorddetail',
          component: import('../views/ExpenseManagement/detail/creditRecorddetail.vue')
        },

        // 费用管理详情结束
      ],
    },
  ],
})

export default router
